﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.DAL
{
    public abstract class Info
    {
        /// <summary>
        /// 程序注释中作者姓名
        /// </summary>
        public static string Author
        {
            get
            {
                return System.Configuration.ConfigurationManager.AppSettings["author"];
            }
        }

        /// <summary>
        /// 实体类命名空间
        /// </summary>
        public static string EntityNamespace
        {
            get
            {
                return System.Configuration.ConfigurationManager.AppSettings["EntityNamespace"];
            }
        }

        /// <summary>
        /// 业务接口命名空间
        /// </summary>
        public static string IBLLNamespace
        {
            get
            {
                return System.Configuration.ConfigurationManager.AppSettings["IBLLNamespace"];
            }
        }

        /// <summary>
        /// 业务类命名空间
        /// </summary>
        public static string BLLNamespace
        {
            get
            {
                return System.Configuration.ConfigurationManager.AppSettings["BLLNamespace"];
            }
        }

        /// <summary>
        /// 持久层接口命名空间
        /// </summary>
        public static string IDALNamespace
        {
            get
            {
                return System.Configuration.ConfigurationManager.AppSettings["IDALNamespace"];
            }
        }

        /// <summary>
        /// 持久层命名空间
        /// </summary>
        public static string DALNamespace
        {
            get
            {
                return System.Configuration.ConfigurationManager.AppSettings["DALNamespace"];
            }
        }

        /// <summary>
        /// 链接字符串
        /// </summary>
        public static string DB_CONN
        {
            get 
            {
                return System.Configuration.ConfigurationManager.AppSettings["DB_CONN"];   
            }
        }

        /// <summary>
        /// 日志名
        /// </summary>
        public static string LogName
        {
            get
            {
                return System.Configuration.ConfigurationManager.AppSettings["LogName"];
            }
        }
    }
}
